
package com.xbongbong.pro.domain.dao;

import com.xbongbong.pro.domain.entity.ChartLimitEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


/**
 * @ClassName ChartLimitDao
 * @Description 图表限制
 * @Author mengna.Deng
 * @Date 2021/8/23 14:48
 * @Version 1.0
 */
@Repository
@Mapper
public interface ChartLimitDao {

    Integer insert(ChartLimitEntity chart);

    Integer update(ChartLimitEntity chart);
    
    Integer updateDel(ChartLimitEntity chartLimitEntity);

    void insertBatch(@Param("list") List<ChartLimitEntity> chartList);

    Integer deleteByKey(@Param("key") Long key, @Param("corpid") String corpid);

    ChartLimitEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid);

    List<ChartLimitEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);

    void updateBatch(@Param("list") List<ChartLimitEntity> chartLimitEntityList, @Param("corpid") String corpid);

    ChartLimitEntity getByType(@Param("type") Integer type, @Param("corpid") String corpid);

    ChartLimitEntity getByAlias(@Param("alias") String alias, @Param("corpid") String corpid);


}
